package com.firefly.admin.config.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.firefly.admin.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@ApiModel(value = "FySystemSensitiveConfig", description = "系统敏感数据配置")
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
public class FySystemSensitiveConfig extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "配置ID")
    private Long configId;

    @ApiModelProperty(value = "敏感数据类型", notes = "1：姓名 2：手机号 3：身份证号 4：电子邮箱 5：地址 6：ip")
    private String sensitiveType;

    @ApiModelProperty(value = "前置不加密数据长度")
    private Integer prefixNoMaskLength;

    @ApiModelProperty(value = "后置不加密数据长度")
    private Integer suffixNoMaskLength;

    @ApiModelProperty(value = "替换字符")
    private String replaceCharacter;

    @ApiModelProperty(value = "敏感配置状态", notes = "1：启用 0：停用")
    private String configStatus;
}
